package com.android.jingweiapp.bean;

import com.android.jingweiapp.util.Contacts;
/**
 * Created by LENA on 2015/11/17.
 * 把content字符串里面的<img/>标签变成绝对路径
 */
public class GetNewContent {
    public  static String getNewContent(String content){
        String path_1="src=\"/jxw/images/UploadImg/image/";//需要替换的相对路径
        String path_2="src=\""+Contacts.BASE_PIC_URL+"images/UploadImg/image/";//替换之后的绝对路径
        content=content.replace(path_1,path_2);
        return content;
    }
}
